package com.kxf.androidtestdemo.service;

import android.content.Context;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.work.Worker;
import androidx.work.WorkerParameters;

/**
 * @ProjectName: AndroidTestDemo
 * @Package: com.kxf.androidtestdemo.service
 * @ClassName: MyWorker
 * @Description: java类作用描述
 * @Author: kuangxuefeng
 * @qq: 1024883177
 * @CreateDate: 2020/10/12 9:47
 */
public class MyWorker extends Worker {

    private static final String TAG = "MyWorker";
    public MyWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
        super(context, workerParams);
    }

    @NonNull
    @Override
    public Result doWork() {
        Log.i(TAG, "doWork=====>>>" + getId());
        return Result.success();
    }
}
